package cn.glc.daily.life.model.dto;

import cn.glc.daily.life.model.enums.CaptchaType;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 验证码发送(验证码发送type只存在2种类型)
 *
 * @author simon
 * @date 2020/6/1 16:21
 * @copyright:
 * @modifier
 * @motto a no talent, people who have to study hard
 */
@Data
public class SendCodeDto {

    /**
     * 手机短信/邮箱
     * 1.短信验证码(sms)
     * 2.邮箱验证码(mail)
     */
    @NotNull(message = "请选择类型")
    private CaptchaType captchaType;
    /**
     * 接收的手机号/邮箱号/其他
     */
    @NotBlank(message = "接收号码不能为空")
    private String number;
}
